<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Alipay extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';
	public function _initialize()
    {
		$ename = $this->request->param('ename');
		$name = $this->request->param('name');

        
    }
	public function alipay()
    {
		$ename = $this->request->param('ename');
		$name = $this->request->param('name');
		$param = '';
		if($ename) $param = '?ename='.$ename;
		if($name) $param = '?ename='.$name;
		if(cmf_is_mobile()){
			header('location:/h5'.$param);exit;
		}else{
			header('location:/pc'.$param);exit;
		}
        
    }
}
